package com.dailywork.basepro.thread.deadlock;

/**
 * 交叉申请锁
 */
public class Client2 {
    public static void main(String[] ars) {
        final TestClass classA = new TestClass();
        final TestClass classB = new TestClass();
        new TestLock(classA, classB).start();
        new TestLock(classB, classA).start();
    }
}
